package com.tracking.generater.demo;// this is auto generated file, never change it by hand

import java.util.Map;
import java.util.HashMap;

public class Tracking {

    protected String name;

    protected Map<String, Object> params = new HashMap<>();

    public String getName() {
        return name;
    }

    public Map<String, Object> getParams() {
        return params;
    }

    public void track() {
        //作神策tracking
        TrackingUtil.track(name, params);
        params.clear();
    }

    public static AppSOLMapInputAreaSearch appSOLMapInputAreaSearch() {
        return new AppSOLMapInputAreaSearch();
    }

    /**
     * 埋点事件名: App线上出房地图找房输入地区查询
     * 埋点时机: 地图找房页 输入小区/商圈/地铁后请求接口时触发
     */
    public static class AppSOLMapInputAreaSearch extends Tracking {

        public AppSOLMapInputAreaSearch() {
            super.name = "App_SOL_Map_InputArea_Search";
        }

        //属性名: 搜索词
        public AppSOLMapInputAreaSearch searchText(Object search_text) {
            params.put("search_text", search_text);
            return this;
        }

        //属性名: 商圈
        public AppSOLMapInputAreaSearch block(Object block) {
            params.put("block", block);
            return this;
        }

        //属性名: 地铁
        public AppSOLMapInputAreaSearch subway(Object subway) {
            params.put("subway", subway);
            return this;
        }

    }

    public static AppSOLMapChooseSubwayClick appSOLMapChooseSubwayClick() {
        return new AppSOLMapChooseSubwayClick();
    }

    /**
     * 埋点事件名: App线上出房地图找房选择地铁点击
     * 埋点时机:
     */
    public static class AppSOLMapChooseSubwayClick extends Tracking {

        public AppSOLMapChooseSubwayClick() {
            super.name = "App_SOL_Map_ChooseSubway_Click";
        }

        //属性名: 地铁
        public AppSOLMapChooseSubwayClick subway(Object subway) {
            params.put("subway", subway);
            return this;
        }

    }

}
